package com.ibangnuo.framework.newLandpay.impl.client;

import com.ibangnuo.framework.newLandpay.api.NewLandpayClient;
import com.ibangnuo.framework.newLandpay.api.NewLandpayRequest;
import com.ibangnuo.framework.newLandpay.api.NewLandpayResponse;

/**
 * @Author: wwy
 * @Date: 2020-01-09 14:58
 */
public class DefaultNewLandpayClient implements NewLandpayClient {
    private String key;
    public DefaultNewLandpayClient(String key){
        this.key = key;
    }
    public <T extends NewLandpayResponse> T execute(NewLandpayRequest newLandpayRequest) {
        return newLandpayRequest.execute(key);
    }

}
